﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace TestMiniAccess.AccessEntity
{
    using Ruandao.MiniAccess;
    using Ruandao.MiniAccess.SqlServer;
    /// <summary>
    /// 
    /// </summary>
    public sealed class TestMiniAccess : SqlServerAccess
    {
        static readonly TestMiniAccess instance = new TestMiniAccess();

        private TestMiniAccess()
            : base( Assembly.GetAssembly(typeof(TestMiniAccess)),
                    "MiniTestDatabase",
                    DataSourceSetter.Instance.GetConnectionString("MiniTestDatabase"))
        { }

        static TestMiniAccess() { }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static TestMiniAccess GetInstance()
        {
            return instance;
        }
    }
}
